const requireIndex = require('es6-requireindex');
const middleswares = require('../middlewares');
const controller = require('../controllers');
const modulesFiles = requireIndex(__dirname).modules;
module.exports = (router) => {
  Object.keys(modulesFiles).forEach((item) => {
    modulesFiles[item](router, middleswares, controller);
  });
};

